package com.tiro.springboot.sample.config;

import com.fasterxml.jackson.databind.ObjectMapper;
import com.tiro.springboot.sample.model.ModelObject;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author long.qul
 * @date 26/01/2018
 */
@Configuration
public class JacksonConfig {

    @Bean
    public ObjectMapper objectMapper() {
        return ModelObject.OBJECT_MAPPER;
    }

}
